#!/usr/bin/python
# vim:fileencoding=utf8
"""
Тестирующий модуль.
"""

import unittest
from textprocess import *

class TestThought(unittest.TestCase):    
    def test_words2text(self):
        self.assertEqual(words2text(['']), '')
        self.assertEqual(words2text(['', '']), '')
        self.assertEqual(words2text(['a', 'b']), 'a b')
        self.assertEqual(words2text(['a', 'b', '']), 'a b')
        self.assertEqual(words2text(['a', 'b', '', '']), 'a b')
        self.assertEqual(words2text(['a', '', '', 'b', '']), 'a b')
        
        
def suite():
    suite = unittest.TestSuite()
    return suite


if __name__ == "__main__":
    unittest.main()
